home *** CD-ROM | disk | FTP | other *** search
-
- HOW TO USE SWEEP.COM
-
- Most DOS commands treat subdirectories like separate floppy disks.
- SWEEP.COM lets commands range across your whole hard disk.
-
- The author of this utility program is Charles Petzold, a contributing
- editor of PC Magazine. The ASSEMBLY and BASIC source codes to make
- SWEEP.COM appeared in the November 12, 1985 issue of PC Magazine,
- Volume 4, Number 23.
-
- USING SWEEP.COM - SWEEP uses the following syntax:
-
- SWEEP Command [parameter]
-
- Here, Command is any DOS internal or external command, or any .COM,
- .EXE, or .BAT file you would normally be able to enter following the
- DOS prompt. Depending on the command, you may or may not need an
- additional parameter. The command following SWEEP will be executed
- over all nested subdirectories of the default drive, beginning with
- the current directory. If the current directory is the root
- directory, SWEEP will do your whole disk. Otherwise, it will only
- sweep across a subset of your hard disk. Before the specified
- command is executed, the following message:
-
- >>> SWEEP >>> directory
-
- will be displayed, indicating the directory in which the command
- will be executed. The cursor will pause briefly allowing you to
- break out of SWEEP by quickly pressing CTRL-BREAK or CTRL-C before
- the command begins.
-
- For example, to list all files, subdirectory by subdirectory, on
- your hard disk, enter the following:
-
- SWEEP DIR
-
- and you'll get the complete DIR command output for every
- subdirectory on your hard disk. Add >PRN to get a printout.
-
- To delete all the .BAK backup files, you enter:
-
- SWEEP DEL *.BAK
-
- To copy all the .BAS files to a single subdirectory BASIC, you enter:
-
- SWEEP COPY *.BAS \BASIC
-
- NOTE: SWEEP takes no parameter other than the command to be executed.
- Thus: 1.) Your default drive must be the one you want SWEEP to work
- over. 2.) Your current directory on that drive must be that in which
- you want SWEEP to begin. 3.) The command must be on a path that
- allows it to work on the default drive and subdirectories.
-
- To get the complete story, see the article, which starts on
- page 265 of the above mentioned issue of PC Magazine.
-
- To print this file, set the printer to the top of the page and
- enter the following command:
- A>copy SWEEP.DOC prn
-